package com.caimiao.miao.library.usb.interfaces;

import com.caimiao.miao.library.usb.accessory.Command;

public interface IUsbControl extends IUsbTransfer {

    void addUsbReadCallback(IUsbReadCallback iUsbReadCallback);

    void destroy();

    void callback(Command command);

    int ResumeAccessory();

    /***************************缓存操作************************************/
    void addCommandToWriteQueue(Command command);

    void addLastCmdToWriteQueue(Command command);

    Command nextCommand();

    void clearWriteQueue();

    void setReadData(int count, byte[] usbData);

    char[] getReadData();

    void clearReadData();
}
